<?php

class Persion {
    public $name = 'lisi';
}

$p1 = new Persion();
$p2 = new Persion();

print_r($p1);
print('<br>');
print_r($p2);

print('<br>');
var_dump($p1==$p2);
print('<br>');
$p2->name = 'wangwu';
var_dump($p1==$p2);
print('<br>');
var_dump($p1===$p2);
print('<br>');
$p3 = $p1;
$p3->name = 'wangwu';
var_dump($p3->name);
print('<br>');
var_dump($p1==$p3);
print('<br>');
var_dump($p1===$p3);